This forum is closed to new posts and
responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:
I'm using the following lotusscript code to read the text from table cells in a rich text field. Everything works great except for cells that contain bullets. It will get the text up to the bullets, but not the bullet text. Anyone see anything wrong with the code, or know how to access the bullet text?
thanks,
rob
cr = chr(10)
Set rtt = rtnav.GetElement
Set rtrange = rti.CreateRange
Set textrange = rti.CreateRange
Set range2 = rti.CreateRange
Call rtnav.FindFirstElement(RTELEM_TYPE_TABLECELL)
firstFlag = True
desc = ""
sep = ""
For i = 1 To rtt.RowCount
For j = 1 To rtt.ColumnCount
If Not firstFlag Then
Call rtnav.FindNextElement(RTELEM_TYPE_TABLECELL)
Else
firstFlag = False
End If
Call rtrange.SetBegin(rtnav)
Call rtrange.SetEnd(rtnav)
sRiskDesc = ""
cr1 = ""
Set rtnavcell = rtrange.Navigator
Call rtnavcell.FindFirstElementRTELEM_TYPE_TEXTRUN)
Do
Call textrange.SetBegin(rtnavcell)
Call textrange.SetEnd(rtnavcell)
Set nav2 = textrange.Navigator
Call nav2.FindFirstElement(RTELEM_TYPE_TEXTPARAGRAPH)
Do
Call range2.SetBegin(rtnavcell)
Call range2.SetEnd(rtnavcell)
sRiskDesc = sRiskDesc & cr1 & range2.TextParagraph
cr1 = cr
Loop While nav2.FindNextElement(RTELEM_TYPE_TEXTPARAGRAPH)
Loop While rtnavcell.FindNextElementRTELEM_TYPE_TEXTRUN)
Next
Next
Feedback number WEBB8X5HK3 created by ~Dexter Bubnibergli on 08/13/2012
Status: Open
Comments:
Can't get bullets in RTELEM_TYPE_TE... (~Dexter Bubnibe... 13.Aug.12) . . other font? (~Rex Brewelitgo... 14.Aug.12) . . . . Not getting text after bullet (~Chris Zenreman... 14.Aug.12)